<div class="modal fade" id="publishMessageModal-{{key}}" tabindex="-1" role="dialog" aria-labelledby="publishMessageModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" role="document">

        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">New Message</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>

            <div class="modal-body">

                <div class="form-group">
                    <label class="col-form-label">Message Name</label>
                    <input id="message-name-{{key}}" class="form-control" type="text" value="{{messageName}}" />
                </div>

                <div class="form-group">
                    <label class="col-form-label">Correlation Key</label>
                    <input id="message-correlation-key-{{key}}" class="form-control" type="text" value="{{correlationKey}}" />
                </div>

                {{>components/variables-form-with-key}}

                <div class="form-group">
                    <label class="col-form-label">Time-to-Live</label>
                    <input id="message-ttl-{{key}}" class="form-control" type="text" value="PT0S"></input>
                </div>

            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>

                <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="publishMessageSubscription('{{key}}')">Publish</button>
            </div>

        </div>
    </div>
</div>